﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kardex_DataAccess;
using Kardex_Entity;


namespace Kardex_BussinesLogic
{
    public class TypeStatusCivilFactory
    {
        TypeStatusCivlDA manager;
        public TypeStatusCivilFactory()
        {
            manager = new TypeStatusCivlDA();
        }

        public List<typestatuscivil> GetListAll()
        {
            List<typestatuscivil> listManager = new List<typestatuscivil>();
            listManager = null;
            try
            {
                listManager = manager.GetListAll();
            }
            catch (Exception)
            {
                listManager = null;
            }
            return listManager;
        }
    }

    public class TypeBusinessFactory
    {
        TypeBusinessDA manager;
        public TypeBusinessFactory()
        {
            manager = new TypeBusinessDA();
        }

        public List<typebusiness> GetListAll()
        {
            List<typebusiness> listManager = new List<typebusiness>();
            listManager = null;
            try
            {
                listManager = manager.GetListAll();
            }
            catch (Exception)
            {
                listManager = null;
            }
            return listManager;
        }
    }

    public class TypeCreditFactory
    {
        TypeCreditDA manager;
        public TypeCreditFactory()
        {
            manager = new TypeCreditDA();
        }

        public List<typecredit> GetListAll()
        {
            List<typecredit> listManager = new List<typecredit>();
            listManager = null;
            try
            {
                listManager = manager.GetListAll();
            }
            catch (Exception)
            {
                listManager = null;
            }
            return listManager;
        }
    }
}
